import { axios } from '@/utils/request'

/**
 * 查询物品表
 *
 * @author can
 * @date 2022-03-18 01:41:52
 */
export function bizMatPage (parameter) {
  return axios({
    url: '/bizMat/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 物品表列表
 *
 * @author can
 * @date 2022-03-18 01:41:52
 */
export function bizMatList (parameter) {
  return axios({
    url: '/bizMat/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加物品表
 *
 * @author can
 * @date 2022-03-18 01:41:52
 */
export function bizMatAdd (parameter) {
  return axios({
    url: '/bizMat/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑物品表
 *
 * @author can
 * @date 2022-03-18 01:41:52
 */
export function bizMatEdit (parameter) {
  return axios({
    url: '/bizMat/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除物品表
 *
 * @author can
 * @date 2022-03-18 01:41:52
 */
export function bizMatDelete (parameter) {
  return axios({
    url: '/bizMat/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出物品表
 *
 * @author can
 * @date 2022-03-18 01:41:52
 */
export function bizMatExport (parameter) {
  return axios({
    url: '/bizMat/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
